#include "appconst.h"
#include <QApplication>
#include "Path.h"
#include <QTextCodec>

AppConst::AppConst()
{

}

QString AppConst::getQAppDir()
{
	return QApplication::applicationDirPath();
}

std::string AppConst::getAppDir()
{
	return comn::Path::getWorkDir();
}

std::string AppConst::getFreqPath()
{
	std::string appDir = getAppDir();
	return comn::Path::join(appDir, "freq.ini");
}


std::string AppConst::getProgramPath()
{
	std::string appDir = getAppDir();
	return comn::Path::join(appDir, "program.ini");
}

std::string AppConst::getLoopPath()
{
	std::string appDir = getAppDir();
	return comn::Path::join(appDir, "loop.ini");
}